﻿/*
 * Vytvořeno aplikací SharpDevelop.
 * Uživatel: lebeda
 * Datum: 30.5.2012
 * Čas: 7:54
 * 
 * Tento template můžete změnit pomocí Nástroje | Možnosti | Psaní kódu | Upravit standardní hlavičky souborů.
 */
using System;
using CommandLine;
using CommandLine.Text;


    public class CmdOptions {
        [Option("s", "search", Required = false, HelpText = "search for phrase.")]
        public string phrase { get; set; }
        
        [Option("p", "path", Required = false, HelpText = "Path or list file to index.")]
        public string pathToSearch { get; set; }        

        [Option("n", "not_normalize", DefaultValue = true,
                HelpText = "Not normalize search phraze (remove diacritics, remove spaces, convert to lower cases).")]
        public bool normalize { get; set; }
        
        [Option("e", "exists", DefaultValue = false,
                HelpText = "Print to output only actualy available files.")]
        public bool exists { get; set; }
        
        [HelpOption]
        public string GetUsage() {
            var help = new HelpText(new HeadingInfo("locateGUI", "0.1"));
            help.Copyright = new CopyrightInfo("Martin Lebeda", 2012, DateTime.Now.Year);
            help.AddPreOptionsLine("GUI for locate utilities. Powered on lucene.NET.");
            help.AddOptions(this);
            return help;
        }
    }
